﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="ShowTravelPlanControl.ascx.cs" Inherits="Control_UpdateTravelPlanControl" %>
<asp:ListView ID="ListView1" runat="server"
    EnableModelValidation="True" DataKeyNames="IdLocation" >
    <AlternatingItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="IdLocationLabel" runat="server" 
                    Text='<%# Eval("IdLocation") %>' />
                    
            </td>
            <td>
                <asp:Label ID="StartLocationLabel" runat="server" 
                    Text='<%# Eval("StartLocation") %>' />
            </td>
            <td>
                <asp:Label ID="EndLocationLabel" runat="server" 
                    Text='<%# Eval("EndLocation") %>' />
            </td>
            <td>
                <asp:Label ID="TimeStartLabel" runat="server" Text='<%# Eval("TimeStart") %>' />
            </td>
            <td>
                <asp:Label ID="StopStopLabel" runat="server" Text='<%# Eval("StopStop") %>' />
            </td>
            <td>
                Update <a href="InsertTravelPlanControl.ascx?idpro=<%# Eval("IdLocation") %>" >
            </td>
        </tr>
    </AlternatingItemTemplate>
  
    <ItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="IdLocationLabel" runat="server" 
                    Text='<%# Eval("IdLocation") %>' />
                    
            </td>
            <td>
                <asp:Label ID="StartLocationLabel" runat="server" 
                    Text='<%# Eval("StartLocation") %>' />
            </td>
            <td>
                <asp:Label ID="EndLocationLabel" runat="server" 
                    Text='<%# Eval("EndLocation") %>' />
            </td>
            <td>
                <asp:Label ID="TimeStartLabel" runat="server" Text='<%# Eval("TimeStart") %>' />
            </td>
            <td>
                <asp:Label ID="StopStopLabel" runat="server" Text='<%# Eval("StopStop") %>' />
            </td>
            <td>
                Update <a href="InsertTravelPlanControl.ascx?idpro=<%# Eval("IdLocation") %>" >
            </td>
        </tr>
    </ItemTemplate>
    <LayoutTemplate>
        <table runat="server">
            <tr runat="server">
                <td runat="server">
                    <table ID="itemPlaceholderContainer" runat="server" border="0" style="">
                        <tr runat="server" style="">
                            <th runat="server">
                                IdLocation</th>
                            <th runat="server">
                                StartLocation</th>
                            <th runat="server">
                                EndLocation</th>
                            <th runat="server">
                                TimeStart</th>
                            <th runat="server">
                                StopStop</th>
                            <th runat="server">
                                Select</th>
                        </tr>
                        <tr ID="itemPlaceholder" runat="server">
                        </tr>
                    </table>
                </td>
            </tr>
            <tr runat="server">
                <td runat="server" style="">
                    <asp:DataPager ID="DataPager1" runat="server">
                        <Fields>
                            <asp:NextPreviousPagerField ButtonType="Button" ShowFirstPageButton="True" 
                                ShowLastPageButton="True" />
                        </Fields>
                    </asp:DataPager>
                </td>
            </tr>
        </table>
    </LayoutTemplate>
    <SelectedItemTemplate>
        <tr style="">
            <td>
                <asp:Label ID="IdLocationLabel" runat="server" 
                    Text='<%# Eval("IdLocation") %>' />
                    
            </td>
            <td>
                <asp:Label ID="StartLocationLabel" runat="server" 
                    Text='<%# Eval("StartLocation") %>' />
            </td>
            <td>
                <asp:Label ID="EndLocationLabel" runat="server" 
                    Text='<%# Eval("EndLocation") %>' />
            </td>
            <td>
                <asp:Label ID="TimeStartLabel" runat="server" Text='<%# Eval("TimeStart") %>' />
            </td>
            <td>
                <asp:Label ID="StopStopLabel" runat="server" Text='<%# Eval("StopStop") %>' />
            </td>
            <td>
                Update <a href="InsertTravelPlanControl.ascx?idpro=<%# Eval("IdLocation") %>" >
            </td>
        </tr>
    </SelectedItemTemplate>
</asp:ListView>
